package club.lovety.code.thread.pool;

import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentLinkedQueue;

/**
 * <p>
 * 自己实现的线程池操作
 * </p>
 *
 * @author sunmc
 * @date created in 2018/4/25 10:46
 * @since
 */
public class MyThreadPoolExecutor {

    /**
     * 描述:  存放任务的队列
     * @since:
     */
    private ConcurrentLinkedQueue<Runnable> workQueue ;

    private int initPoolSize;

    private int maxPoolSize;

    private int activePoolSize;


    public MyThreadPoolExecutor() {

    }

    public void  execute(Runnable runnable){

    }
    public void submit(Callable<?> callable){

    }


    class MyThreadFactoy{


        /**
         * 描述:  工厂中创建一个线程
         * @since:
         */
        public Thread newThread(Runnable runnable){
            return null;
        }

    }
}
